#exam6.5.2.py 生日悖论分析
from random import *#导入随机函数库
times = 100 * 100   #实验次数
count = 0           #计数器
for i in range(times):
    lis = []
    for j in range(23):
        lis.append(randint(1,366))
    if len(lis) != len(set(lis)):
        count += 1
print("23人中至少两个人生日相同的概率:{}".format(count/times))